package com.hly.musicbackground.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hly.musicbackground.domain.SearchKey;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SearchKeyDao extends BaseMapper<SearchKey> {
    @Insert("insert into search_key (search_key) values (#{key}) ON DUPLICATE KEY UPDATE search_num = search_num + 1")
    void searchKey(String key);
}
